package net.bgraham.collectionbatcher;

import java.util.HashSet;

/**
 * A Batcher that removes duplicates from the collected data that occur during the
 * current period of data collection.
 * @param <T>
 */
public class ConflatingBatcher<T> extends Batcher<T>
{

	/**
	 * A Batcher that removes duplicates from the collected data that occur during the
	 * current period of data collection.
	 * @param batchListener
	 * @param maxTimeToWaitBetweenBatches
	 * @param maxTimeToWaitBetweenUpdates
	 */
	public ConflatingBatcher(final IBatchListener<T> batchListener, long maxTimeToWaitBetweenBatches,
			long maxTimeToWaitBetweenUpdates)
	{
		super(batchListener, maxTimeToWaitBetweenBatches, maxTimeToWaitBetweenUpdates, new HashSet<T>());
	}
	
}
